home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1042 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  673 b 

  1. From: bousch@topo.ph.kcl.ac.uk (Thierry Bousch)
  2. Subject: warnings
  3. Date: Fri, 18 Feb 1994 13:23:03 +0100 (MET)
  4. In-Reply-To: <9402181043.AA16194@math.uni-muenster.de> from "Julian Reschke" at Feb 18, 94 11:43:24 am
  5.  
  6. Hi Julian,
  7.  
  8. > Here are some diffs to get rid of some warnings:
  9.  
  10. > 761c761
  11. > <     if (( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
  12. > ---
  13. > >     if (0 != ( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
  14.  
  15. it seems that Pure C had a good reason to issue this warning: I guess that
  16. the line should have been:
  17.  
  18.     if ((r = (*fc.fs->getxattr)(&fc, &xattr)) < 0)
  19.  
  20. which is not the same, since the assigment operator has lower
  21. precedence than the comparison operator.
  22.  
  23. Thierry.
  24.